package bean;

import java.io.IOException;

import org.jsoup.*;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class ScrapingBean {
	
	public String NewScrap() throws IOException {
		Document doc = Jsoup.connect("http://www.ingesup.com/ecole/news").get();
		Elements newsHeadlines = doc.select(".nspTopInterface");
		String banniere = null;
		for (Element element : newsHeadlines) {
			banniere = element.outerHtml();
		}
		
		return banniere;
	}
}
